package smartgrid.conf;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import smartgrid.Constants;

@XmlRootElement(name = Constants.TAG_REGULATOR)
public class RegulatorConf {
	
	private String	className;
	
	private int			numberDenouncesPunish;
	
	private double	probabilityPunish;
	
	private double	punishment;
	
	private int			numberDenouncesSuspension;
	
	private double	probabilitySuspension;
	
	private int			periodSuspension;
	
	
	public String getClassName() {
		return this.className;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_CLASSNAME)
	public void setClassName(String className) {
		this.className = className;
	}
	
	
	public int getNumberDenouncesPunish() {
		return this.numberDenouncesPunish;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_NUMBER_DENOUNCES_PUNISH)
	public void setNumberDenouncesPunish(int numberDenouncesPunish) {
		this.numberDenouncesPunish = numberDenouncesPunish;
	}
	
	
	public double getProbabilityPunish() {
		return this.probabilityPunish;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_PROBABILITY_PUNISH)
	public void setProbabilityPunish(double probabilityPunish) {
		this.probabilityPunish = probabilityPunish;
	}
	
	
	public double getPunishment() {
		return this.punishment;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_PUNISHMENT)
	public void setPunishment(double punishment) {
		this.punishment = punishment;
	}
	
	
	public int getNumberDenouncesSuspension() {
		return this.numberDenouncesSuspension;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_NUMBER_DENOUNCES_SUSPENSION)
	public void setNumberDenouncesSuspension(int numberDenouncesSuspension) {
		this.numberDenouncesSuspension = numberDenouncesSuspension;
	}
	
	
	public double getProbabilitySuspension() {
		return this.probabilitySuspension;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_PROBABILITY_SUSPENSION)
	public void setProbabilitySuspension(double probabilitySuspension) {
		this.probabilitySuspension = probabilitySuspension;
	}
	
	
	public int getPeriodSuspension() {
		return this.periodSuspension;
	}
	
	
	@XmlElement(name = Constants.TAG_REGULATOR_PERIOD_SUSPENSION)
	public void setPeriodSuspension(int periodSuspension) {
		this.periodSuspension = periodSuspension;
	}
}